from sys import argv
import string


disk_size=270


def compute(num):
    s=4096

    size = 10
    len = size*1024*1024*1024 / 512   #20G/sector


    for i in range(0,num) :
       print s, s + len -1
       s =  s + len
 
    size = 2

    len = size*1024*1024*1024 / 512   #20G/sector    
    for i in range(0,num) :
        print s, s + len -1
        s =  s + len


    size = (disk_size - 12*num)/num

    len = size*1024*1024*1024 / 512   #20G/sector    
    for i in range(0,num) :
       print s, s + len -1
       s =  s + len

   
    disk_end = 275 * 1024*1024*1024 /512

    print s, disk_end
if __name__ == '__main__':
   script,num = argv
   compute(string.atoi(num))
   
